#!/bin/bash

echo "🔧 设置脚本执行权限..."

chmod +x fix-node-version.sh
chmod +x fix-tsx-issue.sh
chmod +x start-compatible.sh
chmod +x setup-aide.sh
chmod +x quick-setup.sh
chmod +x diagnose.sh
chmod +x init-production-db.sh
chmod +x debug-postgres-connection.sh
chmod +x fix-postgres-connection.sh
chmod +x check-backend-env.sh
chmod +x fix-all-postgres-issues.sh

echo "✅ 权限设置完成！"

echo ""
echo "📋 可用脚本:"
echo "1. ./fix-node-version.sh         - 修复Node.js版本问题"
echo "2. ./fix-tsx-issue.sh            - 修复tsx加载器问题"
echo "3. ./start-compatible.sh         - 兼容性启动脚本"
echo "4. ./setup-aide.sh               - 完整项目初始化"
echo "5. ./quick-setup.sh              - 快速初始化"
echo "6. ./diagnose.sh                 - 问题诊断"
echo "7. ./debug-postgres-connection.sh - PostgreSQL连接诊断"
echo "8. ./fix-postgres-connection.sh  - 修复PostgreSQL连接"
echo "9. ./check-backend-env.sh        - 检查后端环境"
echo "10. ./fix-all-postgres-issues.sh - 一键修复所有PostgreSQL问题"
